Dim $UIDonutChart1$ As UIDonutChart
$UIDonutChart1$.Initialize(Me, "$UIDonutChart1$")
$UIDonutChart1$.AddToParent(Activity, 10dip, 10dip, Activity.Width - 20dip, 340dip)
'The responsive legend is placed below the ring and wraps when needed.
'Tap or long-press a legend percentage or color to show its original value and percentage.
$UIDonutChart1$.setStrokeWidth(24) 'Logical dip units; the setter converts them internally.
$UIDonutChart1$.setGapAngle(3)
Dim values As List = Array(30.0, 20.0, 15.0, 35.0)
Dim labels As List = Array("Red", "Blue", "Green", "Yellow")
Dim colors As List = Array(xui.Color_Red, xui.Color_Blue, xui.Color_Green, xui.Color_Yellow)
$UIDonutChart1$.SetData(values, labels, colors)
$end$
